---
id: delete
title: "Delete data: delete()"
slug: delete
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Performs a DELETE on the table.

<Tabs
  defaultValue="js"
  groupId="libraries"
  values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>

<TabItem value="js">

```js
const { data, error } = await supabase
  .from('cities')
  .delete()
  .match({ id: 666 })
```


</TabItem>
<TabItem value="py">

```py
# Not yet implemented
```


</TabItem>

</Tabs>





## Notes

- `delete()` should always be combined with [Filters](/docs/client/using-filters) to target the item(s) you wish to delete.










## Examples

### Delete records



<Tabs
  defaultValue="js"
  groupId="libraries"
  values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>

<TabItem value="js">

```js
const { data, error } = await supabase
  .from('cities')
  .delete()
  .match({ id: 666 })
```


</TabItem>
<TabItem value="py">

```py
# Not yet implemented
```


</TabItem>

</Tabs>